package com.xxxx.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Author Lionel
 * @Date 2021/3/7 21:50
 * Created by IntelliJ IDEA 2020.1.
 * Project: house
 * Description：返回对象实体类
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class ResponseResult<T> {
    private Integer state = 200;
    private String message;
    private T data;

    public ResponseResult(int i, Exception e) {
        super();
        this.state = i;
        this.message = e.getMessage();
    }
}
